package com.patttern.creativity.factory.simplefactory;

/**
 * @Author: root
 * @Date: 2018/11/16 18:19
 */
public class Client {
    public static void main(String[] args) {
//        Car byd = new Byd();
//        Car audi = new Audi();
//        byd.run();
//        audi.run();
        Car byd =CarFactory.createCar("byd");
        byd.run();

        Car audi = CarFactory.createAudi();
        audi.run();
    }
}
